package thinkingJava.chapter05;

import static util.Print.*;

class Tree {
	int height;
	Tree() {
		print("Planting a seedling");
		height = 0;
	}
	Tree(int height) {
		print("Creating new tree that is " + height + " feet tall!");
		this.height = height;
	}
	void info() {
		print("Tree is " + height + " feet tall!");
	}
	void info(String s) {
		print(s + ":Tree is " + height + " feet tall!");
	}
}
public class Overloading {
	public static void main(String[] args) {
		for (int i = 0; i < 5; i ++) {
			Tree t = new Tree(i);
			t.info();
			t.info("overload method");
		}
		Tree tree = new Tree();
	}
}
